<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页 - 日记小程序</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }
        body {
            background-color: #f7f7f7;
            color: #333;
            padding-bottom: 60px;
        }
        .header {
            background-color: #42b983;
            color: white;
            padding: 15px;
            text-align: center;
            position: relative;
        }
        .search-icon {
            position: absolute;
            right: 15px;
            top: 15px;
            font-size: 18px;
        }
        .date-filter {
            display: flex;
            padding: 15px;
            background-color: white;
            margin-bottom: 10px;
        }
        .date-filter .month {
            flex: 1;
            text-align: center;
            color: #666;
        }
        .date-filter .month.active {
            color: #42b983;
            font-weight: bold;
        }
        .diary-list {
            padding: 0 15px;
        }
        .diary-item {
            background-color: white;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .diary-date {
            font-size: 12px;
            color: #999;
            margin-bottom: 5px;
        }
        .diary-mood {
            display: inline-block;
            padding: 2px 8px;
            background-color: #e1f5ea;
            color: #42b983;
            border-radius: 10px;
            font-size: 12px;
            margin-bottom: 8px;
        }
        .diary-content {
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .diary-image {
            width: 100%;
            height: 120px;
            border-radius: 5px;
            object-fit: cover;
            margin-bottom: 5px;
        }
        .add-button {
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: #42b983;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 2px 10px rgba(66, 185, 131, 0.4);
        }
        .tabbar {
            position: fixed;
            bottom: 0;
            width: 100%;
            height: 50px;
            background-color: white;
            display: flex;
            border-top: 1px solid #eee;
        }
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: #999;
        }
        .tab-item.active {
            color: #42b983;
        }
        .tab-item i {
            font-size: 20px;
            margin-bottom: 3px;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>我的日记</h1>
        <div class="search-icon">
            <i class="fas fa-search"></i>
        </div>
    </div>

    <div class="date-filter">
        <div class="month">1月</div>
        <div class="month">2月</div>
        <div class="month">3月</div>
        <div class="month active">4月</div>
        <div class="month">5月</div>
        <div class="month">6月</div>
    </div>

    <div class="diary-list">
        <div class="diary-item">
            <div class="diary-date">2023年4月18日 星期二 晴</div>
            <div class="diary-mood">开心</div>
            <div class="diary-content">今天是美好的一天，早上去公园跑步，遇到了许多可爱的小狗。中午和朋友一起吃了午饭，下午完成了工作任务，感觉很充实！</div>
            <img src="https://picsum.photos/id/237/400/200" class="diary-image" alt="日记图片">
        </div>

        <div class="diary-item">
            <div class="diary-date">2023年4月17日 星期一 多云</div>
            <div class="diary-mood">平静</div>
            <div class="diary-content">今天是普通的一天，早上起来做了早餐，然后开始了一天的工作。晚上回家看了一部电影，很放松。</div>
        </div>

        <div class="diary-item">
            <div class="diary-date">2023年4月16日 星期日 雨</div>
            <div class="diary-mood">思考</div>
            <div class="diary-content">雨天适合思考，我想了很多关于未来的事情。希望能在明年实现自己的目标，加油！</div>
            <img src="https://picsum.photos/id/1015/400/200" class="diary-image" alt="日记图片">
        </div>
    </div>

    <div class="add-button">
        <i class="fas fa-plus"></i>
    </div>

    <div class="tabbar">
        <div class="tab-item active">
            <i class="fas fa-book"></i>
            <span>日记</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-calendar-alt"></i>
            <span>日历</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-chart-line"></i>
            <span>统计</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-user"></i>
            <span>我的</span>
        </div>
    </div>
</body>
</html> 